package week5th;

public class ProductNode {
    private LinearNode<Product> next;
    private Product element;

    public ProductNode() {
        next = null;
        element = null;
    }

    public ProductNode(Product elem) {
        next = null;
        element = elem;
    }

    public LinearNode<Product> getNext()
    {
        return next;
    }

    public void setNext(LinearNode<Product> node)
    {
        next = node;
    }

    public Product getElement()
    {
        return element;
    }

    public void setElement(Product elem)
    {
        element = elem;
    }
}
